package com.dxysun.design.composite.open;

public abstract class Component
{
    protected void operation()
    {
        throw new UnsupportedOperationException("不支持的操作");
    }
    protected boolean addChild(Component component)
    {
        throw new UnsupportedOperationException("不支持添加操作");
    }
    protected boolean removeChild(Component component)
    {
        throw new UnsupportedOperationException("不支持删除操作");
    }
    protected Component getChild(int i)
    {
        throw new UnsupportedOperationException("不支持获取操作");
    }
}
